<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Front_Controller extends Page_Controller{
    
    function Front_Controller(){
        parent::Page_Controller();
        $CI = &get_instance();
		$CI->load->module_language('blocks.block',$CI->session->userdata('front_language'));
        //$CI->load->module_model('configurations.config_model');
		/*
        $title_tag = $CI->config_model->get_config(TITLE_TAG);		
        if(!empty($title_tag) && !empty($title_tag->value));
            $this->add('title_tag', $title_tag->value);		
        $desc = $CI->config_model->get_config(DESCRIPTION_TAGS);
        if(!empty($desc))
            $this->add('description_tags', $desc->value);        
        $keywords_tags = $CI->config_model->get_config(KEYWORDS_TAGS);
        if(!empty($keywords_tags))
            $this->add('keywords_tags', $keywords_tags->value);
        */
		/*
        $google_user_account = $CI->config_model->get_config(GOOGLE_ANALYTICS_USER_ACCOUNT_ID);
        if(!empty($google_user_account) && !empty($google_user_account->value))
            $this->add('google_user_account', $google_user_account->value);
			
		$presentation_template = $CI->config_model->get_config(PRESENTATION_TEMPLATES);
        if(!empty($presentation_template) && !empty($presentation_template->value))
            $this->add('page_css', $presentation_template->value);
		*/
		/*
        $b = $CI->config_model->get_config(BUBBLES);
        if(!empty($b) && strtolower($b->value)=='on')
            $this->add('use_bubbles', 1);
        
        if(!$CI->input->get('pid'))
            $_GET['pid'] = 1;
        
        $CI->load->module_model('blocks.utils_model');
        $_GET['term_id']   = (isset($_GET["tid"]) ? $_GET["tid"] : $CI->utils_model->get_tid($CI->utils_model->admin_id));
        $_GET['member_id'] = (isset($_GET["mid"]) ? $_GET["mid"] : 1);
        $_GET['prod_id']   = (isset($_GET["prid"]) ? $_GET["prid"] : 1);
        $_GET['image_id']  = (isset($_GET["iid"]) ? $_GET["iid"] : 0);
        $_GET['location_id']= (isset($_GET["lid"]) ? $_GET["lid"] : 1);
        $_GET['stage_id']  = (isset($_GET["sid"]) ? $_GET["sid"] : 1);
        $_GET['course_id'] = (isset($_GET["cid"]) ? $_GET["cid"] : 1);
        $_GET['class_id']  = (isset($_GET["clid"]) ? $_GET["clid"] : 0);
        $_GET['enrol_id']  = (isset($_GET["eid"]) ? $_GET["eid"] : "");

        // defines the scope of some of the related blocks. TCH-teacher, CO-course, CL-class, LO-location, ALL-all
        $_GET['scope_flag']=(isset($_GET["scf"]) ? $_GET["scf"] : "ALL");
        */
    }
}
?>